@echo off
echo 测试ANRS文件读取程序
echo.

cd /d "D:\automated-script\backend"

echo 编译测试程序...
call mvn compile test-compile

if %errorlevel% neq 0 (
    echo 编译失败！
    pause
    exit /b 1
)

echo.
echo 运行ANRS文件读取测试...
call mvn exec:java -Dexec.mainClass="com.company.anr.AnrsFileReaderTest" -Dexec.classpathScope=test

echo.
echo 测试完成！
pause